package com.demo.behavioral.mediator;

public class Customer extends LettingAgentMember{
	
	public Customer(String userName, LettingAgent lettingAgent) {
		super(userName, lettingAgent); 
	} 
 
	public LettingAgent getLettingAgent() {
		return lettingAgent;
	}

	public void setLettingAgent(LettingAgent lettingAgent) {
		this.lettingAgent = lettingAgent;
	}
	
	public void applicationForPurchase(String price){
		this.lettingAgent.purchaseHandle(this,price);
	}

	@Override
	public void getLettingAgentMsg() { 
		System.out.println("买方获取中介信息，卖方报价为"+this.lettingAgent.getSellerPrice()); 
	} 

}
